package cn.wyx.action;

public class CalculatorAction {
	private double num1;
	private double num2;
	private double result;
	public double getNum1() {
		return num1;
	}
	public void setNum1(double num1) {
		this.num1 = num1;
	}
	public double getNum2() {
		return num2;
	}
	public void setNum2(double num2) {
		this.num2 = num2;
	}
	public double getResult() {
		return result;
	}
	public void setResult(double result) {
		this.result = result;
	}
	public String jia(){
		result=num1+num2;
		return "result";
	}
	
	public String jian(){
		result=num1-num2;
		return "result";
	}
	public String cheng(){
		result=num1*num2;
		return "result";
	}
	public String chu(){
		result=num1/num2;
		return "result";
	}
}
